/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jeff.springWebTestNG.ioc;

import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;

/**
 * It is hard to demo this feature.
 * Only when proxyMode is enabled(either target_class or interface), the scope "request","session","global session" 
 * bean become able to be injected to other component(usually singleton ones). This 'injected' unlike singleton & 
 * prototype ones which inject the actual target class, it inject the proxy only and overcome the problem of 'one-time injection'
 * @author zhou.zhefu
 */
@Component
@Scope(value="request", proxyMode=ScopedProxyMode.TARGET_CLASS) //equivalent to <aop:scoped-proxy proxy-target-class="true" />
public class NonStandardScopedBean {
    
}
